<template>
    <mobileNavigationvue v-if="isMobileTerminal" :data="resdata"> </mobileNavigationvue>
    <pcNavigationvue v-else></pcNavigationvue>
</template>

<script setup>
import { isMobileTerminal } from '@/utils/flexible'
import mobileNavigationvue from './mobile/index.vue'
import pcNavigationvue from './pc/index.vue'
import getCategory from '@/api/category'
import { reactive, ref } from 'vue-demi'

// 获取数据
let resdata = ref([])
const getCategoryDate = () => {
    const { success, message, data } = getCategory[0]
    if (success) {
        resdata = data.categorys
    }
    console.log(message)
}
getCategoryDate()
</script>

<style lang="scss" scoped>

</style>